package com.examination.exam.controller;


import com.examination.exam.service.PublishExaminationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/exam")
public class PublishExaminationController {
    @Autowired
    private PublishExaminationService publishExaminationService;

    @PostMapping("/publish")
    public void publishExamniation(@RequestBody String examId, @RequestBody boolean isQualify, @RequestBody List<String> qualify) {
        publishExaminationService.publishExamniation(examId, isQualify, qualify);
    }
}
